2020-2021 Sunseeker Telemetry and Lighting System
pmap_ex1_singleRuntimeConfig.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 

Variables

const uint8_t port_mapping []
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 86 of file pmap_ex1_singleRuntimeConfig.c.

References __no_operation(), param, and port_mapping.

Variable Documentation

◆ port_mapping

const uint8_t port_mapping[]
Initial value:
= {
PM_TB0CCR0A,
PM_TB0CCR1A,
PM_TB0CCR2A,
PM_TB0CCR3A,
PM_TB0CCR4A,
PM_TB0CCR5A,
PM_TB0CCR6A,
PM_NONE
}

MSP430F5529 Demo - Port Mapping Port4; Single runtime configuration

Port4 is port mapped to output TIMER_B digital signals. TBCCR1-6 generate different PWM DutyCycles and have been output on Port4 pins. TBCCR0 generates a square wave of freq ACLK/2^10 ~32Hz. MCLK = SMCLK = default DCO; ACLK = REFO~32kHz;

            MSP430F5529
        ------------------
    /|\|                  |
     | |                  |
     --|RST               |
       |     P4.0(TB0CCR0)|--> ACLK/2^10 ~ 32Hz
       |     P4.1(TB0CCR1)|--> 25%
       |     P4.2(TB0CCR2)|--> 50%
       |     P4.3(TB0CCR3)|--> 62.5%
       |     P4.4(TB0CCR4)|--> 75%
       |     P4.5(TB0CCR5)|--> 87.5%
       |     P4.6(TB0CCR6)|--> 94%
       |     P4.7(PM_None)|--> DVSS

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • PMAP module
  • GPIO Port peripheral
  • UCS module
  • Timer module

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None.

Definition at line 74 of file pmap_ex1_singleRuntimeConfig.c.

Referenced by main().